package com.example.g32.notice

import com.example.base.http.ApiServer
import com.example.base.mvi.BaseViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class NoticeViewModel @Inject constructor(val apiServer: ApiServer) : BaseViewModel<NoticeIntent>() {
    override fun handlerIntent(it : NoticeIntent) {
        when(it){
            is NoticeIntent.getNotice->httpRequest(apiServer.getNotices(it.page, it.size))
        }
    }
}